package com.ljx.recruitment.interview.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;

@Getter
@AllArgsConstructor
public enum JobBaseProcessEnum {

    RESUME(1, "简历筛选阶段"),
    WRITTEN_EXAMINATION(3, "笔试阶段"),
    MAJOR_INTERVIEW(5, "专业面试阶段"),
    HR_INTERVIEW(7, "主管面试阶段"),
    OFFER(9, "Offer谈薪阶段"),
    OVER(11, "入职录用");

    private Integer key;
    private String value;


    public static Map<Integer, JobBaseProcessEnum> cache;
    static {
        cache = Arrays.stream(JobBaseProcessEnum.values()).collect(Collectors.toMap(JobBaseProcessEnum::getKey, Function.identity()));
    }
}
